/**
 * Copyright (c) 2006-2007 Jinyi.lu
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of GNU LGPL license by gun.org
 * which accompanies this distribution, and is available at
 * http://gnu.feld-it.at/copyleft/lesser.html
 * 
 * Project Homepage : http://code.google.com/p/demou
 * Source Code: svn checkout http://demou.googlecode.com/svn/trunk/ demou
 * Mailing list : jinyi.lu@gmail.com
 *                stonelu@126.com
 *
 *  
 * Contributors:
 *     JinYi.Lu - initial API and implementation
 */
package cn.tworen.demou.remoting;

import org.apache.log4j.Logger;

/**
 * Http request.
 * 
 * @author <a href="chenrui@gmail.com">Roger Chen</a>
 * @version $id$
 */
public class HttpRequest extends HttpMessage {
	/**
	 * Logger for this class
	 */
	private static final Logger logger = Logger.getLogger(HttpRequest.class);

    private String method;
    private String uri;

    public String getRequestMethod() {
        return method;
    }

    public void setRequestMethod(String method) {
        this.method = method;
    }

    public String getRequestURI() {
        return uri;
    }

    public void setRequestURI(String uri) {
        this.uri = uri;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();
        buffer.append(method).append(" ");
        buffer.append(uri).append(" ");
        buffer.append(getVersion()).append("\r\n");
        buffer.append(super.toString());
        return buffer.toString();
    }
}
